package com.example.demo.designpattern设计模式.behavioral行为型.chainofresponsibility责任链模式.二次手撕;

public class HandlerB extends Handler {

    @Override
    public void handler() {
        boolean handed = false;
        if (!handed && successor != null){
            successor.handler();
        }
    }
}
